home *** CD-ROM | disk | FTP | other *** search
-
- sub initFilter(objSelFilt)
- 'main sub routine
- dim strImageloc, strFilter
- strImageloc = " "
- strFilter = buildFilter(objSelFilt)
- strImageloc = getImage(grapinput)
- changetxt.innerHTML = textinput.value & "<BR>" & strImageloc
- changetxt.style.filter = strFilter
- end sub
-
- function buildFilter(objSelFilt)
- 'checks for filters than make them part of the string
- for i = 0 to (objSelFilt.length -1)
- if objSelFilt.options(i).selected = True then
- buildFilter = buildFilter & _
- objSelFilt.options(i).value & " "
- end if
- next
- end function
-
- function getImage(grapinput)
- 'checks for an image, then passes the HTML back to
- 'make an image tag
- if len(grapinput.value) > 4 then
- getImage = "<IMG SRC=" & q & grapinput.value & q & ">"
- else
- getImage = ""
- end if
- end function
-
- function restFilter(changetxt)
- changetxt.style.filter = " "
-
- end function
-